package com.mobi.Survey.map;

import android.content.Context;

import com.mobi.Survey.lib.activities.SurveyDownloadTask;
import com.mobi.Survey.lib.model.Credentials;

public class MapSurveyDownloadTask extends SurveyDownloadTask {
 
	


	 
	private MapMarker mapMarker;
	 

	public MapSurveyDownloadTask(MapMarker marker, Context ctx) {
		super(ctx,new Credentials(marker.getUserId(), ""));
		this.mapMarker = marker;
		 
	}

	protected Integer doInBackground(String... params) {

		return super.doInBackground(params);
	}

	@Override
	protected void onProgressUpdate(Integer... values) {

		super.onProgressUpdate(values);
 
	}

	protected void onPostExecute(Integer result) {

		super.onPostExecute(result);
 

	}

	protected void onPreExecute() {

		
 
		if (mapMarker.getUserId().length() == 0) {

			cancel(true);
			return;
		}
		super.onPreExecute();
		 
		 

	}

}